home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / g_man / cat3 / OpenGL-GLC / glcgencontext.z / glcgencontext
Encoding:
Text File  |  1998-10-20  |  3.9 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ggggllllccccGGGGeeeennnnCCCCoooonnnntttteeeexxxxtttt((((3333GGGG))))         OOOOppppeeeennnnGGGGLLLL CCCChhhhaaaarrrraaaacccctttteeeerrrr RRRReeeennnnddddeeeerrrreeeerrrr          ggggllllccccGGGGeeeennnnCCCCoooonnnntttteeeexxxxtttt((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ggggllllccccGGGGeeeennnnCCCCoooonnnntttteeeexxxxtttt,,,, ggggllllccccDDDDeeeelllleeeetttteeeeCCCCoooonnnntttteeeexxxxtttt - generate or delete a context
  10.  
  11.  
  12. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  13.      GLint ggggllllccccGGGGeeeennnnCCCCoooonnnntttteeeexxxxtttt( void )
  14.  
  15.  
  16. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  17.      void ggggllllccccDDDDeeeelllleeeetttteeeeCCCCoooonnnntttteeeexxxxtttt( GLint _i_n_C_o_n_t_e_x_t )
  18.  
  19.  
  20. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  21.      _i_n_C_o_n_t_e_x_t  Specifies the ID of the context to be deleted.
  22.  
  23. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  24.      ggggllllccccGGGGeeeennnnCCCCoooonnnntttteeeexxxxtttt generates a new context and returns its ID.
  25.  
  26.      ggggllllccccDDDDeeeelllleeeetttteeeeCCCCoooonnnntttteeeexxxxtttt marks the context specified by _i_n_C_o_n_t_e_x_t for deletion.
  27.      If the marked context is not current to any client thread, the command
  28.      deletes the marked context immediately. Otherwise, the marked context is
  29.      deleted when the context is no longer current to any client's thread.
  30.  
  31.      A GLC context is an instantiation of GLC. When a client thread issues a
  32.      GLC command, the thread's current GLC context executes the command.
  33.  
  34.      Each GLC context has a nonzero ID of type GGGGLLLLiiiinnnntttt. When the ID of a GLC
  35.      context is stored in the GLC context ID variable of a client thread, the
  36.      context is said to be current to the thread. It is not possible for a GLC
  37.      context to be current simultaneously to multiple threads.  With the
  38.      exception of the per-thread GLC error code and context ID variables, all
  39.      of the GLC state variables that are used during the execution of a GLC
  40.      command are stored in the issuing thread's current GLC context. To make a
  41.      context current, call ggggllllccccCCCCoooonnnntttteeeexxxxtttt.
  42.  
  43.      Note that the results of issuing a GL command when there is no current GL
  44.      context are undefined. Because GLC issues GL commands, you must create a
  45.      GL context and make it current before calling GLC.
  46.  
  47. EEEERRRRRRRROOOORRRRSSSS
  48.      GGGGLLLLCCCC____PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRR____EEEERRRRRRRROOOORRRR is generated if _i_n_C_o_n_t_e_x_t is not the ID of one of the
  49.      client's GLC contexts.
  50.  
  51. AAAASSSSSSSSOOOOCCCCIIIIAAAATTTTEEEEDDDD GGGGEEEETTTTSSSS
  52.      ggggllllccccGGGGeeeettttAAAAllllllllCCCCoooonnnntttteeeexxxxttttssss, ggggllllccccIIIIssssCCCCoooonnnntttteeeexxxxtttt
  53.  
  54. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  55.      ggggllllccccCCCCoooonnnntttteeeexxxxtttt, ggggllllccccGGGGeeeettttCCCCuuuurrrrrrrreeeennnnttttCCCCoooonnnntttteeeexxxxtttt
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.